package com.atomscat.lottery.entity.db;

import com.fasterxml.jackson.annotation.JsonIgnore;
import jakarta.persistence.Entity;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.jpa.domain.AbstractAuditable;

import java.io.Serializable;
import java.util.Optional;

@Setter
@Getter
@Entity(name = "lottery_record")
public class LotteryRecordEntity extends Auditable<UserEntity, Long> implements Serializable {
    private static final long serialVersionUID = 1L;

    // lottery_activity_id
    private Long activityId;

    // lottery_user_id
    private Long userId;

    // lottery_prize_id
    private Long prizeId;

    // lottery_state
    /**
     * 1. Unclaimed,
     * 2. Claimed,
     * 3. Expired
     */
    private String lotteryState;
}
